﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QL_DTTN.DTO.DTO;

namespace QL_DTTN.KQT.BUS
{
    public static class KetQuaThi_Bus
    {
        public static bool CapNhat(KetQuaThi ketQuaThi)
        {
            KetQuaThi db = new KetQuaThi();
            if (db.KiemTraTonTai(ketQuaThi))
            {
                return db.Sua(ketQuaThi);
            }
            else
            {
                return db.Them(ketQuaThi);
            }
        }
        public static bool Them(List<KetQuaThi> lstKetQuaThi)
        {
            return new KetQuaThi().Them(lstKetQuaThi);
        }
        public static bool Sua(List<KetQuaThi> lstKetQuaThi)
        {
            return new KetQuaThi().Sua(lstKetQuaThi);
        }
        public static bool KiemTraTonTai(KetQuaThi ketQuaThi)
        {
            return new KetQuaThi().KiemTraTonTai(ketQuaThi);
        }
    }
}
